import React from 'react';
import {Route} from 'react-router-dom';
import DocumentTitle from 'react-document-title';
import Content from './Content';
import Add from './Add';
import Material from '@container/material';
import Purchase from '@container/purchase';
import Calendar from '@container/calendar';
import UploadImage from '@container/material/UploadImage';
import './home.less';

class Home extends React.PureComponent {
  render() {
    return (
      <DocumentTitle title='首页'>
        <div>
          <Route path='/home/case/material/upload' exact component={UploadImage} />
          <Route path='/home/case/material' exact component={Material} />
          <Route path='/home/case/purchase' exact component={Purchase} />
          <Route path='/home/case/Calendar' exact component={Calendar} />
          <Route path='/home/add' exact component={Add} />
          <Route path='/home' exact component={Content} />
        </div>
      </DocumentTitle>
    )
  }
}

export default Home;